package com.blog4j.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.blog4j.article.entity.ApplyArticleEntity;
import com.blog4j.article.vo.resp.ApplyArticleRespVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 98k灬
 * @version v1.0.0
 * @Description : 功能描述
 * @Create on : 2024/7/23 22:14
 **/
@Mapper
public interface ApplyArticleMapper extends BaseMapper<ApplyArticleEntity> {
    /**
     * 根据文章标题和审批状态查询审批文章信息
     *
     * @param articleTitle 文章标题
     * @param approveStatus 审批状态
     * @return 审批文章信息
     */
    List<ApplyArticleRespVo> selectApplyArticleList(@Param("articleTitle") String articleTitle,
                                                    @Param("approveStatus") Integer approveStatus);
}
